/* pages/gooddetail/gooddetail.wxss */
Page {
    background-color: #fafafa;
}

.banner {
    swiper {
        height: 750rpx;
        border-radius: 0;

        image {
            width: 100%;
            height: 100%;
        }
    }
}

.title {
    margin-top: 24rpx;
    padding: 24rpx 32rpx;
    height: 168rpx;
    background-color: #fff;

    .top {
        display: flex;
        justify-content: space-between;
        align-items: center;

        .left {
            .price {
                font-size: 40rpx;
                color: #f03c3c;
                font-weight: 500;
                line-height: 40rpx;
            }
    
            .vip {
                margin: 0 20rpx;
                display: inline-block;
                width: 100rpx;
                height: 40rpx;
                background-color: #3c3c3c;
                border-radius: 8rpx;
                font-size: 24rpx;
                color: #eee0c3;
                line-height: 40rpx;
                font-weight: 500;
                text-align: center;
            }
    
            .reprice {
                font-size: 24rpx;
                color: #999;
                font-weight: 400;
                text-decoration: line-through;
            }
        }

        .right {
            font-size: 24rpx;
            color: #999;
            font-weight: 400;
        }
    }

    .bottom {
        margin-top: 16rpx;
        font-size: 28rpx;
        color: #484848;
        line-height: 44rpx;
        font-weight: 500;
        overflow: hidden;
        text-overflow: ellipsis;
        -webkit-line-clamp: 2;
        display: -webkit-box;
        -webkit-box-orient: vertical;
    }
}

.servicebox {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 92rpx;

    .left {
        display: flex;
        margin-left: 32rpx;
        height: 92rpx;

        .service {
            display: flex;
            align-items: center;
            margin-right: 48rpx;
            height: 92rpx;

            image {
                width: 32rpx;
                height: 32rpx;
            }
    
            span {
                margin-left: 12rpx;
                font-size: 26rpx;
                line-height: 92rpx;
                color: #303133;
                font-weight: 500;
            }
        }
    }

    .right {
        margin-right: 32rpx;

        image {
            width: 32rpx;
            height: 32rpx;
        }
    }
}

.commentbox {
    height: 486rpx;
    background-color: #fff;

    .commenttitle {
        display: flex;
        justify-content: space-between;
        height: 92rpx;

        .left {
            margin-left: 32rpx;
            line-height: 92rpx;

            .text {
                font-size: 28rpx;
                color: #303133;
                font-weight: 500;
            }

            .total {
                font-size: 28rpx;
                color: #303133;
                font-weight: 500;
            }
        }

        .right {
            margin-right: 32rpx;
            display: flex;
            align-items: center;

            span {
                font-size: 24rpx;
                color: #303133;
                font-weight: 400;
            }

            image {
                width: 32rpx;
                height: 32rpx;
            }
        }
    }

    .comment {
        margin-left: 32rpx;
        margin-bottom: 40rpx;

        .top {
            display: flex;
            align-items: center;

            .avatar {
                width: 48rpx;
                height: 48rpx;
            }
    
            .nickname {
                margin-left: 16rpx;
                margin-right: 24rpx;
                font-size: 24rpx;
                color: #303133;
                font-weight: 500;
            }
    
            .score {
                image {
                    width: 28rpx;
                    height: 28rpx;
                }
            }
        }

        .content {
            margin-top: 16rpx;
            font-size: 26rpx;
            color: #303133;
            font-weight: 500;
        }

        .time {
            font-size: 26rpx;
            color: #999999;
            font-weight: 400;
        }
    }
}

.describe {
    margin-top: 20rpx;
    height: 92rpx;
    background-color: #fff;

    span {
        margin-left: 32rpx;
        font-size: 28rpx;
        color: #303133;
        line-height: 92rpx;
        font-weight: 500;
    }
}

.container {
    position: relative;
    justify-content: end;
    align-items: start;
    padding: 48rpx;
    height: 520rpx;
    background-color: #fff;

    .add-cart-top {
        display: flex;
        align-items: center;

        .left {
            image {
                width: 180rpx;
                height: 180rpx;
            }
        }

        .right {
            margin-left: 32rpx;

            .price {
                .symbol {
                    font-size: 28rpx;
                    color: #f03c3c;
                    line-height: 48rpx;
                    font-weight: 500;
                }

                .number {
                    font-size: 48rpx;
                    color: #f03c3c;
                    font-weight: 500rpx;
                }
            }

            .total {
                margin-top: 8rpx;
                font-size: 24rpx;
                color: #303133;
                line-height: 40rpx;
                font-weight: 500;
            }
        }
    }

    .add-cart-mid {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-top: 54rpx;
        width: 100%;

        .left {
            font-size: 26rpx;
            color: #303133;
            font-weight: 500;
        }

        .right {
            display: flex;

            button::after {
                border: none;
            }

            button {
                display: flex;
                justify-content: center;
                align-items: center;
                width: 60rpx;
                height: 48rpx;
                background-color: #f2f3f5;
                font-size: 32rpx;
                font-weight: 500;
            }

            input {
                margin: 0 6rpx;
                width: 80rpx;
                height: 48rpx;
                text-align: center;
                background-color: #f2f3f5;
            }
        }
    }

    .add-cart-bottom {
        margin-top: 60rpx;

        button::after {
            border: none;
        }

        button {
            width: 654rpx;
            height: 80rpx;
            border-radius: 40rpx;
            font-size: 28rpx;
            color: #fff;
            text-align: center;
            line-height: 80rpx;
            font-weight: 500;
        }

        .add-cart {
            background-color: #ff9402;
        }

        .disable {
            background-color: #ccc;
        }

        .buy {
            background-color: #fe560a;
        }
    }

    .containertitle {
        font-size: 36rpx;
        color: #1d2129;
        align-self: center;
        font-weight: 500;
    }

    .servicetext {
        margin-top: 32rpx;

        .top {
            image {
                width: 32rpx;
                height: 32rpx;
            }

            span {
                margin-left: 4rpx;
                font-size: 28rpx;
                color: #303133;
                font-weight: 500;
            }
        }

        .bottom {
            margin-top: 8rpx;
            margin-left: 44rpx;
            font-size: 26rpx;
            color: #6d6d6d;
            font-weight: 400;
        }
    }

    .close {
        position: absolute;
        top: 48rpx;
        right: 48rpx;
        width: 32rpx;
        height: 32rpx;
    }
}

.navbar {
    display: flex;
    justify-content: space-around;
    align-items: center;
    position: absolute;
    bottom: 0;
    width: 750rpx;
    height: 100rpx;
    background-color: #fff;
    box-shadow: 0 -1rpx 0 0 rgba(171,171,171,1);

    .btnbox {
        display: flex;
        flex-direction: column;
        align-items: center;

        image {
            width: 48rpx;
            height: 48rpx;
        }

        span {
            font-size: 20rpx;
            color: #303133;
            font-weight: 500;
        }
    }

    button::after {
        border: none;
    }

    .add {
        margin: 0;
        width: 246rpx;
        height: 72rpx;
        background-image: linear-gradient(270deg, #FFBB00 0%, #FFA902 100%);
        border-radius: 36px;
        font-size: 28rpx;
        color: #fff;
        line-height: 72rpx;
        font-weight: 500;
    }

    .buy {
        margin: 0;
        width: 246rpx;
        height: 72rpx;
        background-image: linear-gradient(270deg, #FF683A 0%, #F9231B 100%);
        border-radius: 36px;
        font-size: 28rpx;
        color: #fff;
        line-height: 72rpx;
        font-weight: 500;
    }
}

scroll-view {
    height: 100vh;
}